package com.tjf.myjetpackdemo.observerModel;

/**
 * @author: tjf
 * @date: 2023-06-07
 * @desc： 具体的观察者
 */
public class ConcreateObserve  implements Observer{

    String name;

    public ConcreateObserve(String name) {
        this.name = name;
    }

    @Override
    public void update(Object msg) {
        System.out.println(name+"==我是观察者收到的信息="+msg);
    }
}
